Answer:

' Calculate the average KWH per day for winter and summer.
' 1679 KWH used in 41 winter days.
'  752 KWH used in 31 summer days.
'
PRINT "Average WINTER use is ", 1679/41, " KWH per day"
PRINT "Average SUMMER use is ", 752/31,  " KWH per day"
END

This program uses sequential execution. The first PRINT statement executes, then the second PRINT statement executes. Then the END statement stops the program. The program prints this to the monitor:

Average WINTER use is       40.95122     KWH/day
Average SUMMER use is       24.25806     KWH/day

Negative Numbers

Look at the table of arithmetic operators. The symbol - (minus) appears twice in the table. This is because it has two meanings:

Arithmetic Operators
operator
meaning example in words
^
power 3^2 3 to the power 2
-
negation -23 negative 23
*
multiply 1.5 * 8 1.5 times 8
/
divide 12 / 4 12 divided by 4
+
addition 4.2 + 3 4.2 plus 3
-
subtraction 9 - 2 9 minus 2

These two meanings are the same as in ordinary arithmetic. You may be so familiar with these two meanings that you may have trouble seeing them. For example, look at the following, which might be found in a math book (or in any textbook):

-25             negative 25
-5.2            negative 5.2

18.1 - 2.4      18.1 minus 2.4
12 - 6          12 minus 6

The "-" sign is used for two purposes in the above. QBasic uses it for the same two purposes.

QUESTION 18:

What does the "-" do in the following program?

PRINT "Usual gain in buying a lottery ticket ",  -1
END